﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp6
{
    //父类，包括了动物和交通工具
    class Proson
    {
        public void Traffic(){
            Console.WriteLine("我是交通工具");
        }
        public void Animal()
        {
            Console.WriteLine("我是动物");
        }
    }
    //子类飞机
    class Plane:Proson,IPlane
    {
        public void Fly()
        {
            Console.WriteLine("飞机");
        }
    }
    //子类鸟
    class Bird:Proson,IBird
    {
        public void Fly1()
        {
            Console.WriteLine("小鸟");
        }
    }
    //子类超人
    class SuperMan:Proson,ISuperMan
{
        public void Fly3()
        {
            Console.WriteLine("超人");
        }
    }
}
